import request from '@/utils/request';
import md5 from 'js-md5';
//登录
export async function Login(params) {
    //params.password=md5(params.password)
    try {
        const res = await request.post(`/api/loginForBigScreen?username=${params.username}&password=${params.password}`, params);
        return res.code == 200 ? Promise.resolve(res) : Promise.reject(res.msg)
    } catch (error) {
        return Promise.reject(error)
    }
}
